import { Module } from '@nestjs/common';
import { CpuService } from './cpu.service';
import { CpuController } from './cpu.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { CpuCodeSchema, CpuSeriesSchema ,CpuCodeInfoSchema} from '../schema/CPU/cpu_code_schema';

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'CPU_CODE', schema: CpuCodeSchema },
      { name: 'CPU_Series', schema: CpuSeriesSchema },
      { name: 'CPU_CODE_INFO', schema: CpuCodeInfoSchema },
    ]),
  ],

  controllers: [CpuController],
  providers: [CpuService],
})
export class CpuModule {}
